/**
 * @author [siwi]
 * @email [siwi@siwi.me]
 * @create date 2017-09-23 11:44:15
 * @modify date 2017-09-23 11:44:15
 * @desc [用户系统角色]
*/


const { mongoose, Schame } = require('../Mongoose')

const Table = new Schame({
    user_id: {
        type: String,
        required: true
    },
    system_id: {
        type: String,
        required: true,
    },
    roles: {
        type: Array,
        default: []
    },
    level: {
        type: Number,
        default: 0
    }
})



const SystemsUsersRoles = mongoose.model('UserSystemRoles', Table)
module.exports = UserSystemRoles